<include file="Public:header" />

<style>
.list-group {
	padding: 0;
}
.list-group li {
	border-color:#dff0d8;
}
.list-group li a {
	display: block;
}
.list-group li a .badge {
	float: right;
}
.list-group-item:first-child {
	
}
</style>
<link rel="stylesheet" type="text/css" href="__PUBLIC__/Js/validform/style.css">
<script src="__PUBLIC__/Js/validform/Validform.js"></script>

<div style="padding:5px; padding-bottom:0px;">
  <div class="alert alert-warning" role="alert" style="margin-bottom:5px;"> <strong>温馨提示：</strong>请仔细填写换货信息！ </div>
</div>

<if condition="$sale_goods.thstatus eq 0">

<form class="demoform" action="" method="post">
<div class="panel panel-default" style="padding:5px; background:rgba(255,255,255,1.00)">
      <!-- Default panel contents -->
      <div class="panel-heading">申请换货&nbsp;&nbsp;数量:{$sale_goods.num}</div>
      <!-- List group -->
      <ul class="list-group">
        <li class="list-group-item"><input datatype="*" type="text"  class="form-control"  name="remark" placeholder="申请理由" errormsg="请填写申请理由" ></li>
         <input type="hidden" value="2" name="thtype">
        <li class="list-group-item"><input datatype="n" type="text"  class="form-control"  name="num" placeholder="换货数量" errormsg="请填写换货数量" ></li>
        <li class="list-group-item"><input datatype="*"  type="submit" class="form-control" value="确认"></li>
      </ul>
    </div>
 </form>

<elseif condition="$sale_goods.thstatus eq 2"/>

<form class="demoform" action="" method="post">
<div class="panel panel-default" style="padding:5px; background:rgba(255,255,255,1.00)">
      <!-- Default panel contents -->
      <div class="panel-heading">请填写换货物流信息</div>
      <!-- List group -->
      <ul class="list-group">
        <li class="list-group-item"><input datatype="n" value="{$sale_goods.couriernumber}" type="text"  class="form-control"  name="couriernumber" placeholder="请填写快递单号" errormsg="请填写快递单号" ></li>
        <li class="list-group-item"><input datatype="*" value="{$sale_goods.courier}" type="text" class="form-control"  name="courier" placeholder="请填写快递公司" errormsg="请填写快递公司" ></li>
        <li class="list-group-item"><input datatype="*"  type="submit" class="form-control" value="确认"></li>
      </ul>
    </div>
 </form>
 
 <elseif condition="$sale_goods.thstatus eq 5"/> 
 <form class="demoform" action="" method="post">
   <li class="list-group-item"><input datatype="*"  type="submit" class="form-control" value="确认收货"></li>
 </form>
 </if>
 
 <div class="panel panel-success" style="margin:5px;">
  <div class="panel-heading">
    <h3 class="panel-title">换货进度</h3> 
  </div>
  <div class="panel-body">
  <empty name="list">
  <div style="text-align:center;"> 暂无换货进度</div>
  </empty>
    <div class="list-group">
      <volist name="list" id="vo"> <a href="##" class="list-group-item">
         <p class="list-group-item-text">说明：{$vo.remark}</p>
        <empty name="vo['member_id']">
         <p class="list-group-item-text">操作人：管理员</p>
        <else />
         <p class="list-group-item-text">操作人：用户</p>
        </empty>
        <p class="list-group-item-text">时间：{:date('Y-m-d H:i:s', $vo['time'])}</p>
        </a>
      </volist>
    </div>
  </div>
</div>
<div class="pages">{$pages}</div>

 <script>
$(".demoform").Validform();
</script>
<include file="Public:footer" />